package com.t4.courseware.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

public class CarouselDto {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotNull(message = "名称不能为空")
    private String name;

    private String carouselUrl;

    private Integer isCarousel;

    private Long uploadUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
